package com.yang.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 杨天可
 * @Date 2021/3/30 9:48
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Table(name = "tb_attendance_count")
public class AttendanceCount implements Serializable {
/*
员工考勤统计（按月）
 */
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "late_count")
    private Integer lateCount;

    @Column(name = "leave_count")
    private Integer leaveCount;

    @Column(name = "absent_count")
    private Integer absentCount;

    @Column(name = "attendance")
    private Integer attendance;

    @Column(name = "month")
    private Integer month;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "insert_time")
    private Date insertTime;
}
